// ddaterange' | 'date' 日期选择器;
type IFormType =
  | 'input'
  | 'password'
  | 'select'
  | 'cascader'
  | 'daterange'
  | 'date';

export interface IFormItem {
  field: string;
  type: IFormType;
  label: string;
  rules?: any[];
  placeholder?: any;
  options?: any[];
}

export interface IForm {
  formItems: IFormItem[];
  labelWidth?: string;
  colLayout?: any;
  itemLayout?: any;
}

export interface Options {
  showResetButton?: boolean,  // 是否展示重置按钮
  showAddButton?: boolean,    // 是否展示添加按钮
  showDeleteButton?: boolean, // 是否展示删除按钮
  showSearchButton?: boolean  // 是否展示搜索按钮
}
